/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package labs;

import java.util.Scanner;

/**
 *
 * @author JAVA-FUN
 */
public class ifelse01 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.print("Valor 1: ");
        String v1 = scanner.nextLine();

        System.out.print("Valor 2: ");
        String v2 = scanner.nextLine();

        scanner.close();

        Double x1 = Double.valueOf(v1);
        Double x2 = Double.valueOf(v2).doubleValue();

        if (x1 > x2) {
            System.out.println("El mayor es: " + x1);
        } else if (x2 > x1) {

            System.out.println("El menor es: " + x2);
        } else {
            System.out.println("Son Iguales");
        }
    }
}
